<?php
require_once('lib/gymnasium.php');
?>

<h2>Accès aux gymnases</h2>
<table class="table-contain">
	<tr>
		<th>Nom</th>
		<th>Adresse</th>
		<th>Plan d'accès</th>
	</tr>
	<?php
	$gyms = gym_get_list();
	while ($row = mysql_fetch_assoc($gyms)) {
		echo '
		<tr>
			<td><strong>'.$row['name'].'</strong></td>
			<td>'.$row['address'].'<br/>'
				.$row['postal_code'].' '.$row['city'].'</td>
			<td><a href="gymnases-details-'.$row['id'].'.html" class="go">Détails</a></td>
		</tr>';
	}
	?>
</table>

